package com.itheima.pattern.state.after;

public class RunningState extends LiftState{

    @Override
    public void open() {
        System.out.println("电梯正在运行，无法打开");
    }

    @Override
    public void close() {
        System.out.println("电梯已经关闭");
    }

    @Override
    public void stop() {
        super.context.setLiftState(Context.STOPPING_STATE);
        super.context.stop();
    }

    @Override
    public void run() {
        System.out.println("电梯运行。。");
    }
}
